package com.company.strategy;

import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
//        int []a ={9,2,3,5,7,1,4};
//        Sort s = new Sort();
//        int []b = s.sort(a);
//        System.out.println(Arrays.toString(b));
        ///////////////////////////////////////
//
//        Cat[]c = {new Cat(3,3),new Cat(5,5),new Cat(1,1)};
//        Sort s = new Sort();
//        s.sortCat(c);
//        System.out.println(Arrays.toString(c));

        ////////////////////////////////////////
//        Dog[]d = {new Dog(3),new Dog(5),new Dog(1)};
//        Sort s = new Sort();
//        s.sortObject(d);
//        System.out.println(Arrays.toString(d));

        ////////////////////////////////
//        Dog[]d = {new Dog(3),new Dog(5),new Dog(1)};
//        Sort<Dog> s = new Sort<>();
//        s.sortObject(d,new DogComparator());
//        System.out.println(Arrays.toString(d));


        ///////////////////////////////
        Cat[] c = {new Cat(3, 3), new Cat(5, 5), new Cat(1, 1)};
        Sort<Cat> s = new Sort<>();
        s.sortObject(c, new CatWeightComparator());
        System.out.println(Arrays.toString(c));
    }
}
